🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / connections / src / commonMain / kotlin / org / meshtastic / feature / connections / component / ConnectionsPreviews.kt
Displaying Raw • Download
feature/connections/src/commonMain/kotlin/org/meshtastic/feature/connections/component/ConnectionsPreviews.kt renovate/actions-setup-java-5.x (f17e586c) Text, 3.00 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.connections.component
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.tooling.preview.PreviewLightDark
Tff7b72import T7ee787org.meshtastic.core.model.ConnectionState
Tff7b72import T7ee787org.meshtastic.core.ui.icon.MeshtasticIcons
Tff7b72import T7ee787org.meshtastic.core.ui.icon.Search
Tff7b72import T7ee787org.meshtastic.core.ui.theme.AppTheme
Tff7b72import T7ee787org.meshtastic.core.ui.viewmodel.ConnectionStatus
Tff7b72import T7ee787org.meshtastic.feature.connections.model.DeviceListEntry
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.ConnectingDeviceInfo
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.DeviceListItem
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.DeviceSectionHeader
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.DisconnectButton
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.EmptyStateContent
Tff7b72import T7ee787org.meshtastic.feature.connections.ui.components.TransportFilterChips
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffDeviceListItemPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3device Tff7b72= Te6edf3DeviceListEntryTb4b4b4.Te6edf3TcpTb4b4b4(Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffMeshtastic_abcdTa5d6ff"Tb4b4b4, Te6edf3fullAddress Tff7b72= Ta5d6ff"Ta5d6ffs192.168.1.100Ta5d6ff"Tb4b4b4)
Te6edf3AppTheme Tb4b4b4{ Te6edf3DeviceListItemTb4b4b4(Te6edf3connectionState Tff7b72= Te6edf3ConnectionStateTb4b4b4.Te6edf3DisconnectedTb4b4b4, Te6edf3device Tff7b72= Te6edf3deviceTb4b4b4, Te6edf3onSelect Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4) Tb4b4b4}
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffDisconnectButtonPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{ Te6edf3DisconnectButtonTb4b4b4(Te6edf3onClick Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4) Tb4b4b4}
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffConnectingDeviceInfoPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{
Te6edf3ConnectingDeviceInfoTb4b4b4(
Te6edf3deviceName Tff7b72= Ta5d6ff"Ta5d6ffMeshtastic_abcdTa5d6ff"Tb4b4b4,
Te6edf3deviceAddress Tff7b72= Ta5d6ff"Ta5d6ffAA:BB:CC:DD:EE:FFTa5d6ff"Tb4b4b4,
Te6edf3connectionStatus Tff7b72= Te6edf3ConnectionStatusTb4b4b4.Te6edf3CONNECTINGTb4b4b4,
Te6edf3connectionProgress Tff7b72= Ta5d6ff"Ta5d6ffDiscovering services...Ta5d6ff"Tb4b4b4,
Te6edf3onClickDisconnect Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffEmptyStateContentPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{ Te6edf3EmptyStateContentTb4b4b4(Te6edf3text Tff7b72= Ta5d6ff"Ta5d6ffNo devices foundTa5d6ff"Tb4b4b4, Te6edf3imageVector Tff7b72= Te6edf3MeshtasticIconsTb4b4b4.Te6edf3SearchTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffDeviceSectionHeaderPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{ Te6edf3DeviceSectionHeaderTb4b4b4(Te6edf3title Tff7b72= Ta5d6ff"Ta5d6ffBluetooth DevicesTa5d6ff"Tb4b4b4, Te6edf3showProgress Tff7b72= Tff7b72trueTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72fun Td2a8ffTransportFilterChipsPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{
Te6edf3TransportFilterChipsTb4b4b4(
Te6edf3showBle Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3showNetwork Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3showUsb Tff7b72= Tff7b72falseTb4b4b4,
Te6edf3onToggleBle Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Te6edf3onToggleNetwork Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Te6edf3onToggleUsb Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s